﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Castle.MicroKernel.Registration;
using Castle.Windsor;
using MM.Contract.Core;
using MM.Contract.Movies;
using MM.Contract.Categorias;
using MM.Persistence.NH.Repositories;

namespace MM.Bootstrapper.Configurators
{
    public class RepositoriesConfigurator : IConfigurator
    {
        #region Miembros de IConfigurator

        public void Configure(IWindsorContainer container)
        {
            
            container.Register(Component.For<IMovieRepository>()
                .ImplementedBy<MovieRepository>()
                );

            container.Register(Component.For<ICategoriaRepository>()
                .ImplementedBy<CateroriaRepository>()
                );
                
        }

        #endregion
    }
}
